Skip to main content

Updates to Apply Discount and Remove Discount APIs

The following updates have been done to the opportunity APIs in this release:

  • Apply Discount
    The PUT method has been updated to POST. The path parameter discountId has been renamed to discountCode and moved to the body section of the API. In addition to this, a new parameter itemIds has been added. The itemIds refers to the opportunity's item IDs to which the discount is applied.
    The version has been changed from v1 to v2.

PUT /assistedSales/v1/opportunities/{opportunityId}/discounts/{discountId}
To
POST /assistedSales/v2/opportunities/{opportunityId}/applyDiscount
Note: The PUT method will follow the standard deprecation process.

  • Remove Discount
    The DELETE method has been updated to POST. The path parameter discountId has been renamed to discountCode and moved to the body section of the API. In addition to this, a new parameter itemIds has been added. The itemIds refers to the opportunity's item IDs to which the discount is removed.
    The version has been changed from v1 to v2.

DELETE /assistedSales/v1/opportunities/{opportunityId}/discounts/{discountId}
To
POST /assistedSales/v2/opportunities/{opportunityId}/removeDiscount

Note: The DELETE method will follow the standard deprecation process.

Feature enablement

The API will be available by default to Vodafone.

Setting enablement

No setting enablement is required.

Documentation

The API reference documentation will be updated with the release.

Was this page helpful?